<!DOCTYPE html>
<html lang="en" xmlns:v-for="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form class="layui-form layui-form-pane" id="update" v-for="site in obj">
    <div class="layui-form-item">
        <label class="layui-form-label">电话：</label>
        <div class="layui-input-block">
            <input type="text" v-model="site.tel">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">密码：</label>
        <div class="layui-input-block">
            <input type="text" name="title" autocomplete="off" placeholder="请输入密码" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">Email：</label>
        <div class="layui-input-block">
            <input type="text" name="title" autocomplete="off" placeholder="请输入邮箱" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">邀请码：</label>
        <div class="layui-input-block">
            <input type="text" name="title" autocomplete="off" placeholder="请输入邀请码" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <button class="layui-btn" lay-submit="" lay-filter="demo2">跳转式提交</button>
    </div>
</form>
<script type="text/javascript">
    var vm=new Vue({
        el:"#update",
        obj:[],
    })
    $(function () {
        $.ajax({
            type:"get",
            url:"/user/beforeEdit.do",
            dataType:"json",
            success:function (data) {
                vm.obj=data.info;
                $("#content").load("/upuser.html")
            }
        })
    })
</script>
</body>
</html>